package com.example.carowners;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class CarownersService extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_carowners_service);

        Button bt_weibaoyuyue = findViewById(R.id.bt_weibaoyuyue);
        Button bt_weibaohistory = findViewById(R.id.bt_weibaohistory);

        bt_weibaoyuyue.setOnClickListener(this);
        bt_weibaohistory.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.bt_weibaoyuyue:
                startActivity(new Intent(this,CarOwnersWeibaoYuyue.class));
                break;
            case R.id.bt_weibaohistory:
                startActivity(new Intent(this,CarOwnersWeibaoHistory.class));
                break;
        }


    }
}